package com.zhiyun.mapper;

import com.zhiyun.domain.User;
import org.apache.ibatis.annotations.Param;

public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKey(User record);

    User selectByUserName(String username);

    User selectByUserNameAndRoleID(@Param("username") String username,@Param("roleId")  Integer roleId);

    int insertWithAutoKey(User user);
}